﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/ContentFrame.master" AutoEventWireup="true" CodeBehind="UserInfoSetRoles.aspx.cs" Inherits="ETD.WebManagement.Admin.Account.UserInfoSetRoles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="edit_form_container width500">



        <div class="form_filed_container width500 margin_bottom0">
            <label class="label_normal">账号：</label>
            <asp:Label ID="lblUserName" class="label_normal" runat="server" Text=""></asp:Label>
        </div>
        <div class="form_filed_container width250 height_auto">

            <telerik:RadListBox runat="server" ID="lbxAllRoles" AllowTransfer="true" AllowTransferOnDoubleClick="true"
                SelectionMode="Multiple"
                TransferMode="Move" TransferToID="lbxSelectedRoles" Width="98%" Height="300">
                <HeaderTemplate>
                    <table class="width100-percent">
                        <tr>
                            <td>全部角色</td>
                        </tr>
                    </table>
                </HeaderTemplate>
                <ButtonSettings Position="Right" ShowDelete="false" ShowReorder="false"
                    TransferButtons="All" VerticalAlign="Bottom" AreaWidth="35" />
                <Localization AllToRight="全部移到右边" AllToLeft="全部移到左边" ToRight="移到右边" ToLeft="移到左边" />
            </telerik:RadListBox>
        </div>

        <div class="form_filed_container width250 height_auto">

            <telerik:RadListBox runat="server" ID="lbxSelectedRoles" AllowTransferOnDoubleClick="true" Width="100%" Height="300"
                SelectionMode="Multiple">
                <HeaderTemplate>
                    <table class="width100-percent">
                        <tr>
                            <td>已选角色</td>
                        </tr>
                    </table>
                </HeaderTemplate>
            </telerik:RadListBox>
        </div>




        <div class="form_action_button width500 ">
            <telerik:RadButton ID="btnOk" runat="server" Text="确定" OnClick="btnOk_Click" Width="120px">
            </telerik:RadButton>
            &nbsp; &nbsp;           
                            <telerik:RadButton ID="btnCancel" runat="server" Text="取消" Width="120px"
                                AutoPostBack="false"
                                OnClientClicked="onBtnCancelClick">
                            </telerik:RadButton>
        </div>
    </div>

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function onBtnCancelClick() {
                onCancelButtonConfirm(redirectToRolesPage);
            }
            function redirectToRolesPage(isConfirm) {
                if (isConfirm) {
                    onCloseRadWindowManagerDefaultProcessing(true);
                }
            }
        </script>
    </telerik:RadCodeBlock>
</asp:Content>

